package com.example.democourse.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;

/**
 * (Course)表实体类
 *
 * @author makejava
 * @since 2023-01-23 20:01:09
 */
@SuppressWarnings("serial")
public class Course extends Model<Course> {
    //课程id
    private Long id;
    //课程名称
    private String courseName;
    //课程标题
    private String courseTitle;
    //课程类型（关联course_type表）
    private Long courseTypeId;
    //课程状态(1上，2下)
    private Integer status;
    //上下架时间
    private Date upDownDate;
    //创建时间
    private Date createDate;
    //更新时间
    private Date updateDate;

    public CourseType getCourseType() {
        return courseType;
    }

    public void setCourseType(CourseType courseType) {
        this.courseType = courseType;
    }

    //课程类型
    @TableField(exist = false)
    private CourseType courseType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseTitle() {
        return courseTitle;
    }

    public void setCourseTitle(String courseTitle) {
        this.courseTitle = courseTitle;
    }

    public Long getCourseTypeId() {
        return courseTypeId;
    }

    public void setCourseTypeId(Long courseTypeId) {
        this.courseTypeId = courseTypeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUpDownDate() {
        return upDownDate;
    }

    public void setUpDownDate(Date upDownDate) {
        this.upDownDate = upDownDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

